﻿import argparse
from . import data_cleaner

def main():
    parser = argparse.ArgumentParser(description='文渊阁字源处理系统')
    parser.add_argument('input', help='输入JSON文件路径')
    parser.add_argument('-o', '--output', help='输出文件路径', default='cleaned_character_data.json')
    args = parser.parse_args()    
    result = data_cleaner.main(args.input, args.output)
    if result:
        print("✅ 处理成功!")

if __name__ == "__main__":
    main()
